﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Reflection;
using System.Collections.Generic;

public partial class Controls_BUTTONDJ : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            btnSave.Attributes.Add("onclick", "javascript:document.getElementById('"+btnSave.ClientID+"').style.display='none';return jsf('" + btnSave.ClientID + "');");
        }
    }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        Save();
    }
    protected void btnLock_Click(object sender, EventArgs e)
    {
        Lock();
    }
    protected void btnUnLock_Click(object sender, EventArgs e)
    {
        UnLock();
    }
    protected void btnAudit_Click(object sender, EventArgs e)
    {
        Audit();
    }
    protected void btnUnAudit_Click(object sender, EventArgs e)
    {
        UnAudit();
    }
    protected void btnCAudit_Click(object sender, EventArgs e)
    {
        CAudit();
    }
    protected void btnUnCAudit_Click(object sender, EventArgs e)
    {
        UnCAudit();
    }
    protected void btnDelete_Click(object sender, EventArgs e)
    {
        Delete();
    }
    protected void btnOut_Click(object sender, EventArgs e)
    {
        Out();
    }
    protected void btnPrint_Click(object sender, EventArgs e)
    {
        Print();
    }
    protected void btnYiJian_Click(object sender, EventArgs e)
    {
        YiJian();
    }
    protected void btnSQTH_Click(object sender, EventArgs e)
    {
        SQTH();
    }
    protected void btnChanl_Click(object sender, EventArgs e)
    {
        DoChanl();
    }
    protected void btnReturn_Click(object sender, EventArgs e)
    {
        GoReturn();
    }
    public void Save()
    {
        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("Save");
        mi.Invoke(p, null);
    }
    public void Lock()
    {
        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("Lock");
        mi.Invoke(p, null);
    }
    public void UnLock()
    {
        //System.Web.UI.Page p = this.Page;
        //Type pageType = p.GetType();
        //Object[] structure_Obj = new Object[1];
        //List<string> l = new List<string>();
        //l.Add("ss");
        //l.Add("sss");
        //structure_Obj[0] = l;
        //MethodInfo mi = pageType.GetMethod("UnLock");
        //mi.Invoke(p, structure_Obj);

        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("UnLock");
        mi.Invoke(p, null);
    }
    public void Audit()
    {
        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("Audit");
        mi.Invoke(p, null);
    }
    public void UnAudit()
    {
        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("UnAudit");
        mi.Invoke(p, null);
    }
    public void CAudit()
    {
        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("CAudit");
        mi.Invoke(p, null);
    }
    public void UnCAudit()
    {
        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("UnCAudit");
        mi.Invoke(p, null);
    }
    public void Delete()
    {
        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("Delete");
        mi.Invoke(p, null);
    }
    public void Out()
    {
        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("Out");
        mi.Invoke(p, null);
    }
    public void Print()
    {
        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("Print");
        mi.Invoke(p, null);
    }
    public void YiJian()
    {
        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("YiJian");
        mi.Invoke(p, null);
    }

    public void SQTH()
    {
        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("SQTH");
        mi.Invoke(p, null);
    }
    public void DoChanl()
    {
        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("DoChanl");
        mi.Invoke(p, null);
    }
    public void GoReturn()
    {
        System.Web.UI.Page p = this.Page;
        Type pageType = p.GetType();
        MethodInfo mi = pageType.GetMethod("GoReturn");
        mi.Invoke(p, null);
    }
}
